Repository navigation
drm: vc4: Fix pixel-wrap issue with DVP teardown - #4410
Conversation
| VC4_HDMI_FIFO_CTL_RECENTER_DONE, 1); | ||
| WARN_ONCE(ret, "Timeout waiting for " | ||
| "VC4_HDMI_FIFO_CTL_RECENTER_DONE"); | ||
| for (i = 0; i < 0; i++) { // Once again, with feeling |
There was a problem hiding this comment.
That's an odd looking loop. It looks more like "Really, don't bother"!
There was a problem hiding this comment.
hmm, must have pressed undo before merging. It probably is required but I guess the other changes are the sigificant ones
|
In my testing I'm using: with a desktop mode of 1920x1200@59.95. |
|
The mdelay appears to be essential. This patch is fixing my failure case (but there may be other cases) |
|
That's interesting. I'm trying this on a Pi400 with the C0 fix nobbled and drift FIFO restored. Brain failure earlier made me save a different experimental hack! |
f23a7ca to
f78bd48
Compare
|
I ran the second version of my patch overnight in a mode-test loop and it fixed the wraparound issue. I suspect the HVS changes aren't required (i.e. same as patch from @popcornmix), so we should probably just merge the minimal changes and see how that goes. |
Adjust the DVP enable/disable sequence to avoid a pixel getting stuck in an internal, non resettable FIFO within PixelValve when changing HDMI resolution. The blank pixels features of the DVP can prevent signals back to pixelvalve causing it to not clear the FIFO. Adjust the ordering and timing of operations to ensure the clear signal makes it through to pixelvalve. Signed-off-by: Tim Gover <tim.gover@raspberrypi.com>
f78bd48 to
6feeb22
Compare
|
Removed the HVS code and retested |
|
I removed the kodi workaround last night and ran with this form of patch and didn't see the one pixel wrap. |
|
N.B. I think tearing down some low-resolution interlaced modes could still fail (specifically 720x576i). However, other higher resolution interlaced modes are fine e.g. 1080i |
|
Does a smaller (or larger) delay affect the low resolution modes? |
No, but this exiting from 720x576i mode triggers the wrap around on FKMS as well |
|
is this only for a single pixel or the whole line? because I'm still seeing a whole line wrap around, also tending to be triggered by use of interlaced modes, with no fix as of f29ab05611eef385d17675c77190df0b87a0d456. |
|
Yes, this is the same 1-pixel wrap issue, and was mentioned in @tim236's preceding post as still being present (on kms and fkms) when exiting 720x576i (and also other SD interlaced modes). |
@popcornmix @mripard @6by9
Experimental patches to avoid the dreaded pixel wraparound bug (not really a PR!)
Tweak the order of operations to match the VC firmware.
On C0 use dedicate HW assisted fix
Previously, with a Dell 4K monitor (p30) it would fail nearly every reboot. Now it only seems to fail in a mode-test when switching from an interlaced mode back to a regular mode.
Test on Pi4B 1.1